package com.css.fghs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.css.fghs.entity.domain.FgjyYhzxYhkxxbDO;
import com.css.fghs.entity.vo.YhkxxbVO;
import com.css.fghs.service.FgjyYhzxYhkxxbService;
import com.css.fghs.mapper.FgjyYhzxYhkxxbMapper;
import com.css.session.SessionUtils;
import org.springframework.stereotype.Service;

/**
* @author 21062
* @description 针对表【fgjy_yhzx_yhkxxb】的数据库操作Service实现
* @createDate 2025-09-01 17:21:35
*/
@Service
public class FgjyYhzxYhkxxbServiceImpl extends ServiceImpl<FgjyYhzxYhkxxbMapper, FgjyYhzxYhkxxbDO>
    implements FgjyYhzxYhkxxbService{

    @Override
    public Page<FgjyYhzxYhkxxbDO> getYhkxxPage(YhkxxbVO yhkxxbVO) {
        Page<FgjyYhzxYhkxxbDO> page = new Page<>(yhkxxbVO.getPageNum(),yhkxxbVO.getPageSize());
        LambdaQueryWrapper<FgjyYhzxYhkxxbDO> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(FgjyYhzxYhkxxbDO::getYhuuid, SessionUtils.getYhuuid());
        return page(page, queryWrapper);
    }
}




